/*
 * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

namespace TencentCloud.Cdn.V20180606.Models
{
    using Newtonsoft.Json;
    using System.Collections.Generic;
    using TencentCloud.Common;

    public class DiagnoseInfo : AbstractModel
    {
        
        /// <summary>
        /// 待诊断的URL。
        /// 注意：此字段可能返回 null，表示取不到有效值。
        /// </summary>
        [JsonProperty("DiagnoseUrl")]
        public string DiagnoseUrl{ get; set; }

        /// <summary>
        /// 由系统生成的诊断链接。
        /// 注意：此字段可能返回 null，表示取不到有效值。
        /// </summary>
        [JsonProperty("DiagnoseLink")]
        public string DiagnoseLink{ get; set; }

        /// <summary>
        /// 诊断创建时间。
        /// 注意：此字段可能返回 null，表示取不到有效值。
        /// </summary>
        [JsonProperty("CreateTime")]
        public string CreateTime{ get; set; }

        /// <summary>
        /// 诊断链接过期时间。
        /// 注意：此字段可能返回 null，表示取不到有效值。
        /// </summary>
        [JsonProperty("ExpireDate")]
        public string ExpireDate{ get; set; }

        /// <summary>
        /// 诊断链接当前访问次数，一个诊断链接最多可访问10次。
        /// 注意：此字段可能返回 null，表示取不到有效值。
        /// </summary>
        [JsonProperty("VisitCount")]
        public long? VisitCount{ get; set; }

        /// <summary>
        /// 访问诊断链接的客户端简易信息
        /// 注意：此字段可能返回 null，表示取不到有效值。
        /// </summary>
        [JsonProperty("ClientList")]
        public DiagnoseList[] ClientList{ get; set; }

        /// <summary>
        /// 域名加速区域
        /// 注意：此字段可能返回 null，表示取不到有效值。
        /// </summary>
        [JsonProperty("Area")]
        public string Area{ get; set; }


        /// <summary>
        /// For internal usage only. DO NOT USE IT.
        /// </summary>
        public override void ToMap(Dictionary<string, string> map, string prefix)
        {
            this.SetParamSimple(map, prefix + "DiagnoseUrl", this.DiagnoseUrl);
            this.SetParamSimple(map, prefix + "DiagnoseLink", this.DiagnoseLink);
            this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
            this.SetParamSimple(map, prefix + "ExpireDate", this.ExpireDate);
            this.SetParamSimple(map, prefix + "VisitCount", this.VisitCount);
            this.SetParamArrayObj(map, prefix + "ClientList.", this.ClientList);
            this.SetParamSimple(map, prefix + "Area", this.Area);
        }
    }
}

